package Day23;

public class Text1 {
    public static void main(String[] args) {


        int[] arr = {56,25,73,45,99};
        int len = arr.length;
        for(int i = 0 ;i < len -1; i++){
            int temp = 0;
            for(int j = 0;j < len -1 -i; j++){
                if(arr[j] > arr[j + 1]){
                    temp = arr[j];
                    arr[j] = arr[j + 1];
                    arr[j + 1] = temp;
                }
            }
            System.out.println("\n====第"+ (i + 1)+"次排序的结果是=====");
            for (int i1 = 0; i1 < arr.length; i1++) {
                System.out.print(arr[i1] + " ");
            }

        }

    }
}

class Monster{
    private String name;
    private String job;

}